/* *  
 * Copyright (C) 2004-2008 Mocha Almond Fudge AI, SIT KMUTT
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
package jboard.ui;

import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Dimension;
import javax.swing.SwingConstants;
import java.awt.GridLayout;
import java.awt.Component;

/**
 * @author Vashira Ravipanich
 *
 */
public class VLabelPanel extends JPanel {

    public VLabelPanel() {
        super();
        setAlignmentX(Component.LEFT_ALIGNMENT);
        final GridLayout gridLayout = new GridLayout();
        gridLayout.setRows(8);
        setLayout(gridLayout);

        final JLabel label = new JLabel();
        label.setHorizontalAlignment(SwingConstants.CENTER);
        label.setPreferredSize(new Dimension(30, 50));
        label.setFont(new Font("Tahoma", Font.BOLD, 22));
        add(label);
        label.setText("1");

        final JLabel label_2 = new JLabel();
        label_2.setHorizontalAlignment(SwingConstants.CENTER);
        label_2.setPreferredSize(new Dimension(30, 50));
        label_2.setFont(new Font("Tahoma", Font.BOLD, 22));
        add(label_2);
        label_2.setText("2");
        
        final JLabel label_3 = new JLabel();
        label_3.setHorizontalAlignment(SwingConstants.CENTER);
        label_3.setPreferredSize(new Dimension(30, 50));
        label_3.setFont(new Font("Tahoma", Font.BOLD, 22));
        add(label_3);
        label_3.setText("3");
        
        final JLabel label_4 = new JLabel();
        label_4.setHorizontalAlignment(SwingConstants.CENTER);
        label_4.setPreferredSize(new Dimension(30, 50));
        label_4.setFont(new Font("Tahoma", Font.BOLD, 22));
        add(label_4);
        label_4.setText("4");
        
        final JLabel label_5 = new JLabel();
        label_5.setHorizontalAlignment(SwingConstants.CENTER);
        label_5.setPreferredSize(new Dimension(30, 50));
        label_5.setFont(new Font("Tahoma", Font.BOLD, 22));
        add(label_5);
        label_5.setText("5");
        
        final JLabel label_6 = new JLabel();
        label_6.setHorizontalAlignment(SwingConstants.CENTER);
        label_6.setPreferredSize(new Dimension(30, 50));
        label_6.setFont(new Font("Tahoma", Font.BOLD, 22));
        add(label_6);
        label_6.setText("6");
        
        final JLabel label_7 = new JLabel();
        label_7.setHorizontalAlignment(SwingConstants.CENTER);
        label_7.setPreferredSize(new Dimension(30, 50));
        label_7.setFont(new Font("Tahoma", Font.BOLD, 22));
        add(label_7);
        label_7.setText("7");
        
        final JLabel label_8 = new JLabel();
        label_8.setHorizontalAlignment(SwingConstants.CENTER);
        label_8.setPreferredSize(new Dimension(30, 50));
        label_8.setFont(new Font("Tahoma", Font.BOLD, 22));
        add(label_8);
        label_8.setText("8");
    }
}
